//
// Created by liushuai on 18-8-7.
//

#include "Brass.hpp"
void Brass::Withdraw(double amt) {
    if(amt<0)
        std::cout<<"取款数额必须是正数"<<"\n";
    else if(amt <= Balance())
        acctabc::Withdraw(amt);
    else
        std::cout<<"存款数额为：$ "<<amt<<" 没有足够的钱来取";
}
void Brass::ViewAcct() const {
    std::cout<<"Brass Client: "<<FullName()<<"\n";
    std::cout<<"Account Number: "<<AccNum()<<"\n";
    std::cout<<"Balance:$ "<<Balance()<<"\n";
}
